On Complete Functional Synthesis
نویسندگان
چکیده
Synthesis of program fragments from specifications can make programs easier to write and easier to reason about. To integrate synthesis into programming languages, synthesis algorithms should behave in a predictable way—they should succeed for a well-defined class of specifications. They should also support unbounded data types such as numbers and data structures. We propose to generalize decision procedures into predictable and complete synthesis procedures. Such procedures are guaranteed to find code that satisfies the specification if such code exists. Moreover, we identify conditions under which synthesis will statically decide whether the solution is guaranteed to exist, and whether it is unique. We demonstrate our approach by extending decision procedures for integer linear arithmetic and data structures into synthesis procedures, and establishing results on the size and the efficiency of the synthesized code. We show that such procedures are useful as a language extension with implicit value definitions, and we show how to extend a compiler to support such definitions. Our constructs provide the benefits of synthesis to programmers, without requiring them to learn new concepts or give up a deterministic execution model.
منابع مشابه
Superstability of $m$-additive maps on complete non--Archimedean spaces
The stability problem of the functional equation was conjectured by Ulam and was solved by Hyers in the case of additive mapping. Baker et al. investigated the superstability of the functional equation from a vector space to real numbers. In this paper, we exhibit the superstability of $m$-additive maps on complete non--Archimedean spaces via a fixed point method raised by Diaz and Margolis.
متن کاملFunctional polyester fabric through simultaneous aminolysis and nano ZnO synthesis
Here, in situ synthesis of nano zinc oxide, along with aminolysis of polyester fabric, has simultaneously been carried out by using triethanol amine (TEA) and zinc acetate. The ZnO nano particles (NPs) were formed and stabilized on the fabric surface by amine compound at 130 °C for 1 h. The synthesis of nano ZnO particles on the polyester fabric were confirmed by X-ray diffraction (XRD) pattern...
متن کاملGeneralized multivalued $F$-contractions on non-complete metric spaces
In this paper, we explain a new generalized contractive condition for multivalued mappings and prove a fixed point theorem in metric spaces (not necessary complete) which extends some well-known results in the literature. Finally, as an application, we prove that a multivalued function satisfying a general linear functional inclusion admits a unique selection fulfilling the corresp...
متن کاملAbsorption of DCM Dye in Ethanol: Experimental and Time Dependent Density Functional Study
Experimental and theoretical absorption spectra of [2-[2-[4-(dimethylamino) phenyl]ethenyl]-6-methyl-4H- pyran-4-ylidene]-propanedinitrile (DCM) have been studied. UV-Visible (UV-Vis.) absorption spectrum of DCM has been reported after its synthesis. Two relatively intense peaks appeared at 473 and 362 nm respectively. A theoretical investigation on the electronic structure of DCM is presented ...
متن کاملThe Synthesis of 2, 6 diamino- 3, 5-dinitropyridine from Direct Nitration Reaction of 2, 6 diamino pyridine in Different Temperature Conditions by Density Functional Theory
In this article, synthesis of the explosive 2, 6 (diamino) 3, 5 dinitro pyridine (ANPY) of the direct nitration reaction of 2, 6 diamino pyridine in different conditions of temperature, with density functional theory method were studied. For this purpose, at first the material contained in the both sides of reaction were geometrically optimized, then the calculation of the the...
متن کاملGreen Synthesis of Silver Nanoparticles and Its Effect on Total Proteins in Melia Azedarach Plant
Silver nano-particles have different biological applications due to their compatibility. Chemical methods usually result in remaining some amounts of toxic reactions on the nano-particles. For this reason, the use of plants as sustainable and accessible resources in preparation of compatible nano-particles has attracted a lot of attention in the recent years. This research investigated the gree...
متن کامل